<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget flat radius-bordered">
            <div class="widget-body">
                <div id="registration-form">
                    <form role="form" action="sysAdminUserController/resetPassword.do" responseType="JSON" method="post"
                          id="resetPasswordForm">
                        <div class="form-group">
                            <span class="input-icon icon-right">
                                <input type="password" class="form-control" required="required" name="oldPassword"
                                       placeholder="旧密码">
                                <i class="glyphicon glyphicon-user circular"></i>
                            </span>
                        </div>
                        <div class="form-group">
                            <span class="input-icon icon-right">
                                <input type="password" class="form-control" required="required" name="newPassword"
                                       placeholder="新密码">
                                <i class="glyphicon glyphicon-user circular"></i>
                            </span>
                        </div>
                        <div class="form-group">
                            <span class="input-icon icon-right">
                                <input type="password" class="form-control" required="required" name="confirmPassowrd"
                                       placeholder="重复密码">
                                <i class="glyphicon glyphicon-user circular"></i>
                            </span>
                        </div>
                        <div class="row customer-modal-footer">
                            <button type="button" class="btn btn-blue" onclick="closeDialog()">取消</button>
                            <button type="submit" class="btn btn-danger" id="editFormSubmitBtn_${serializeNum}">提交
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    inintValidatorForm($("#resetPasswordForm"))
    $("#resetPasswordForm").on("ajaxSubmitCallback", function (event, res) {
       alert(res.resMsg);
        if (res.resCode == 200) {
            //logger.info(res.resMsg, true);
            closeDialog();
        } else {
            //logger.error(res.resMsg);
        }
    });

    function closeDialog() {
        $("#resetPasswordForm").parents(".modal-content").find(".modal-header .close").click();
    }
</script>